Fix XChangeProperty calls
authorMatthias Clasen <mclasen@redhat.com>
Thu, 3 Jan 2019 00:26:56 +0000 (19:26 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 3 Jan 2019 00:26:56 +0000 (19:26 -0500)
They must be long...

Closes: #1556
gdk/x11/gdkdisplay-x11.c
gdk/x11/gdksurface-x11.c

index 848e41f68cc3a93665c3cb139ffc9bdfb5de13df..ca1237e70307722b41b8f834fb749dad223b3351 100644 (file)
@@ -1600,7 +1600,7 @@ gdk_x11_display_open (const gchar *display_name)
   if (!gdk_running_in_sandbox ())
     {
       /* if sandboxed, we're likely in a pid namespace and would only confuse the wm with this */
-      pid_t pid = getpid ();
+      long pid = getpid ();
       XChangeProperty (display_x11->xdisplay,
                        display_x11->leader_window,
                        gdk_x11_get_xatom_by_name_for_display (display, "_NET_WM_PID"),
index 29b6dae9f7b1f15085a197a8e94cb5dafda5d12a..a8a8140b2e7a660c891264fb6f3efe03dfbddd79 100644 (file)
@@ -746,7 +746,7 @@ setup_toplevel_window (GdkSurface    *surface,
   if (!gdk_running_in_sandbox ())
     {
       /* if sandboxed, we're likely in a pid namespace and would only confuse the wm with this */
-      pid_t pid = getpid ();
+      long pid = getpid ();
       XChangeProperty (xdisplay, xid,
                        gdk_x11_get_xatom_by_name_for_display (x11_screen->display, "_NET_WM_PID"),
                        XA_CARDINAL, 32,